QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

# DEFINES += NORMAL_TEST
# DEFINES += CUT_TEST
DEFINES += AREA_TEST

SOURCES += \
    AreaTest/areatest.cpp \
    AreaTest/glbackgroundprogram.cpp \
    AreaTest/glscanprogram.cpp \
    AreaTest/glserver.cpp \
    AreaTest/glwidget.cpp \
    AreaTest/scanview.cpp \
    main.cpp \
    mainwidget.cpp \
    normalwidget.cpp \
    opengl_lines.cpp \
    opengl_lines2.cpp \
    opengl_lines3.cpp \
    opengl_lines4.cpp \
    opengl_lines5.cpp \
    opengl_lines6.cpp \
    openglcuttest.cpp \
    openglwidget.cpp \
    openglwindiow.cpp

HEADERS += \
    AreaTest/ServerDefine.h \
    AreaTest/areatest.h \
    AreaTest/glbackgroundprogram.h \
    AreaTest/glscanprogram.h \
    AreaTest/glserver.h \
    AreaTest/glwidget.h \
    AreaTest/scanview.h \
    CustomDebugOut.h \
    mainwidget.h \
    normalwidget.h \
    opengl_lines.h \
    opengl_lines2.h \
    opengl_lines3.h \
    opengl_lines4.h \
    opengl_lines5.h \
    opengl_lines6.h \
    openglcuttest.h \
    openglwidget.h \
    openglwindiow.h

FORMS += \
    AreaTest/scanview.ui \
    mainwidget.ui

LIBS += \
    -lopengl32 \
    -lglu32

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

DISTFILES += \
    README.md \
    Shader/fragShader.fsh \
    Shader/normalV.vsh \
    Shader/vShader.vsh \
    Solutions.md

RESOURCES += \
    ShaderResource.qrc
